package com 
{
	/**
	 * ...
	 * @author db0@qq.com
	 */
	public class MyXml 
	{
		
		public function MyXml() 
		{
			
		}
		public static function xml2obj(xml:XML):Object
		{
			//logs.adds(xml);
			var i:int = 0;
			var obj:Object = new Object;
			while (i < xml.children().length()) 
			{
				var names:String = xml.children()[i].name();
				var value:String = xml.children()[i];
				obj[names] = value;
				//logs.adds(names);
				//logs.adds(value);
				//logs.adds(obj[names]);
				++i;
			}
			return obj;
		}
	}

}